//
//  AppDelegate.m
//  HaoBaShengxinEn
//
//  Created by 暗流澎涌 on 2024/6/18.
//

#import "AppDelegate.h"
#import <IQKeyboardManager/IQKeyboardManager.h>
#import "HaoBaTabbarVC.h"
#import "HaoBaComingVC.h"
#import "HaoBaFirstGuideViewController.h"
@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    self.window=[[UIWindow alloc]initWithFrame: [UIScreen mainScreen].bounds];
    if ([[NSUserDefaults standardUserDefaults] boolForKey:@"firstHaoba"]){
        
        HaoBaTabbarVC* tabVC=[[HaoBaTabbarVC alloc]init];
        self.window.rootViewController=tabVC;
    }else{
        HaoBaFirstGuideViewController* guideVC=[[HaoBaFirstGuideViewController alloc]init];
        self.window.rootViewController=guideVC;
    }
    [[IQKeyboardManager sharedManager] enabledToolbarClasses];
    [[IQKeyboardManager sharedManager] setEnable:YES];
    
   
    return YES;
}



-(UIInterfaceOrientationMask)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window{
    
return UIInterfaceOrientationMaskPortrait;//默认全局不支持横屏

}

@end
